package com.macro.mall.bean.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(value = "应答报文")
public class ResposeListVO<T> {

    @ApiModelProperty(name = "respCode",value = "应答码",required = true,position = 0)
    private String respCode = "0000";

    @ApiModelProperty(name = "respDesc",value = "应答描述",required = true,position = 1)
    private String respDesc = "SUCCESS";

    @ApiModelProperty(name = "result",value = "应答报文体",required = false,position = 2)
    private List<T> result;

    @ApiModelProperty(value = "总条数",required = true,position = 4)
    private Long totalCount;

    public ResposeListVO() {

    }

    public ResposeListVO(List<T> result, Long totalCount) {
        this.result = result;
        this.totalCount = totalCount;
    }

    public ResposeListVO(String respCode, String respDesc, List<T> result, Long totalCount) {
        this.respCode = respCode;
        this.respDesc = respDesc;
        this.result = result;
        this.totalCount = totalCount;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }
}
